package com.my.chapter7;

public class practice13 {
    public static void main(String[] args) {
        Type3 t = new Type3();
        t.display('c');
        t.display(3);
        t.display(3.0f);
        t.display();
    }
}

class Type2{
    char display(char c){
        System.out.println("display(char)");
        return c;
    }
    int display(int i){
        System.out.println("display(int)");
        return i;
    }
    float display(float f){
        System.out.println("display(float)");
        return f;
    }
}

class Type3 extends Type2{
    void display(){
        System.out.println("display()");
    }
}
